package com.letv.whatslive.common.utils;

/**
 * Created by wangjian7 on 2016/1/18.
 */
public class DoubleLiveConstants {
    //双人直播消息默认事件
    public static final String DEFAULT_DOUBLE_LIVE_MESSSAGE_EVENT = "doubleLiveMessage";

    public static final int ACTION_INVITE = 1; //主播发起邀请
    public static final int ACTION_ACCEPT_INVITE = 2; //副主播接受邀请
    public static final int ACTION_REFUSE_INVITE = 3; //副主播拒绝邀请
    public static final int ACTION_INTERRUPT_INVITE = 4; //主播中断邀请
    public static final int ACTION_PUSH_STREAM_SUCCESS = 5; //副主播推流成功
    public static final int ACTION_SWITCH = 6; //主播切换屏幕
    public static final int ACTION_SECOND_END_ASSIS_LIVE = 7; //7.副主播结束直播;
    public static final int ACTION_FIRST_END_ASSIS_LIVE = 8; //8.主播结束副主播的直播;
    public static final int ACTION_END_LIVE = 9; //9.主播结束直播;
    public static final int ACTION_DEVICE_NOT_SUPPORT = 10; //10.副主播设备不支持

    // 双人直播被邀请者状态
    public static final int INVITED_USER_STATUS_OK = 1;  // 1: 可接受邀请
    public static final int INVITED_USER_STATUS_OFFLINE = 2; // 2: 已下线
    public static final int INVITED_USER_STATUS_LIVE_IN_PROGRESS = 3; // 3: 正在直播

    // 双人直播当前状态
    public static final int CURRENT_STATUS_INVITE_ACCEPT_WAIT = 1;  // 1: 等待接受
    public static final int CURRENT_STATUS_INVITE_ACCEPT = 2;  // 2: 接受邀请
    public static final int CURRENT_STATUS_INVITE_REFUSE = 3;  // 3: 拒绝邀请
    public static final int CURRENT_STATUS_INVITE_TIMEOUT = 4;  // 4: 邀请超时
    public static final int CURRENT_STATUS_PUSH_STREAM_TIMEOUT = 5;  // 5: 推流超时
    public static final int CURRENT_STATUS_PUSH_STREAM_SUCCESS = 6;  // 6: 推流成功
    public static final int CURRENT_STATUS_DOUBLE_LIVE_FINISH = 7;  // 7: 双人直播结束

    // 被邀请者响应代码
    public static final int INVITED_USER_RESPONSE_INVITE_REFUSE = 0;  // 0: 拒绝邀请
    public static final int INVITED_USER_RESPONSE_INVITE_ACCEPT = 1;  // 1: 接受邀请
    public static final int INVITED_USER_RESPONSE_PUSH_STREAM_SUCCESS = 2;  // 2: 推流成功
    public static final int INVITED_USER_RESPONSE_DEVICE_NOT_SUPPORT = 3;  // 3: 副主播设备不支持

    // 结束邀请
    public static final int STOP_ACTION_INVITE_STOP_BY_INVITER = 1;  // 1: 主播结束邀请
    public static final int STOP_ACTION_LIVE_STOP_BY_INVITER = 2;  // 2: 主播结束副主播的直播
    public static final int STOP_ACTION_LIVE_STOP_BY_INVITEE = 3;  // 3: 副主播结束直播

    // 超时时长(秒)
    public static final long TIMEOUT = 60;  // 超时时间60秒
}
